home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / Windows / System32 / HTMLRE90.DLL / HTML / 11240 < prev    next >
Encoding:
Text File  |  2002-07-05  |  7.1 KB  |  242 lines

  1. <HTML>
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6.     <LINK REL="stylesheet" TYPE="text/css" HREF="%5css/default.css">
  7. </HEAD>
  8.  
  9. <BODY TOPMARGIN="0" LEFTMARGIN="5" MARGINHEIGHT="0" MARGINWIDTH="5" onload="onInit();">
  10.  
  11. <script language="Javascript">
  12. //LOCALIZATION STRINGS
  13. var _strConfirm = "Changes to member groups can take from several seconds to several minutes, depending on the size of the groups";
  14. var _strIgnored = "When NT Authentication is disabled all other changes are ignored";
  15. </script>
  16.  
  17. <DIV ID="tooltip" STYLE="position:absolute;visibility:hidden;z-index:99;"></DIV>
  18. <SCRIPT SRC="%8js/helps.js"></SCRIPT>
  19. <SCRIPT SRC="%9js/tips.js"></SCRIPT>
  20.  
  21. <SCRIPT LANGUAGE="JavaScript">
  22.  
  23. var checked_bool = false; 
  24.  
  25. function modifyForm()
  26. {
  27.     // Modify the check-box
  28.     document.ntauth_prop.ntAvailable.value = document.ntauth_prop.ntAvail.checked; 
  29.  
  30.     // Set up the output value
  31.     member_groups = ""; 
  32.     first = true; 
  33.  
  34.     for (count = 0; count < document.ntauth_prop.ntMemberGroups.options.length; ++count)
  35.     {
  36.         if (!first)
  37.         {
  38.             member_groups += "+"; 
  39.         }
  40.         else first = false; 
  41.  
  42.         current_group = document.ntauth_prop.ntMemberGroups.options[count];    
  43.         member_groups += current_group.value;
  44.  
  45.         // De-select all entries on the select box
  46.         current_group.selected = false;
  47.     }
  48.  
  49.     // Check to see if we are changing other values BUT the authentication is still turned off
  50.     if ((!document.ntauth_prop.ntAvail.checked && !checked_bool) &&
  51.         ((member_groups.toUpperCase() != document.ntauth_prop.input_string.value.toUpperCase()) ||
  52.         (document.ntauth_prop.input_domain.value.toUpperCase() != document.ntauth_prop.ntDefaultDomain.value.toUpperCase()) ||
  53.         (document.ntauth_prop.input_radio.value != document.ntauth_prop.alias_map_rad.value)))
  54.     {
  55.             alert(_strIgnored); 
  56.             return; 
  57.     }                 
  58.  
  59.     // Check to see if the member groups are different from when this page was loaded
  60.     else if (member_groups.toUpperCase() != document.ntauth_prop.input_string.value.toUpperCase())
  61.     {
  62.         if(!confirm(_strConfirm))
  63.             return; 
  64.     }
  65.  
  66.     // Build the final string
  67.     document.ntauth_prop.ntFinalMemberGroups.value = member_groups;
  68.     document.ntauth_prop.submit()
  69. }
  70.  
  71. function deleteGroup()
  72. {
  73.     for (count = document.ntauth_prop.ntMemberGroups.length -1; count >= 0; --count)
  74.     {
  75.         current_group = document.ntauth_prop.ntMemberGroups.options[count];
  76.         if (current_group.selected)
  77.         {
  78.             // remove the object from the current parents
  79.             document.ntauth_prop.ntMemberGroups.options[count] = null;
  80.         }
  81.     }
  82. }
  83.  
  84. function addGroup()
  85. {
  86.     // If it's not already there already
  87.     for (count = 0; count < document.ntauth_prop.ntMemberGroups.length; ++count)
  88.     {
  89.         current_group = document.ntauth_prop.ntMemberGroups.options[count];
  90.         if (current_group.text.toUpperCase() == document.ntauth_prop.newMemberGroup.value.toUpperCase())
  91.         {
  92.             // It's already there
  93.             document.ntauth_prop.newMemberGroup.value = ""; 
  94.             return; 
  95.         }
  96.     }
  97.     
  98.     // Insert each string into the listbox
  99.     if (document.ntauth_prop.newMemberGroup.value != "")
  100.     {
  101.         option = new Option(document.ntauth_prop.newMemberGroup.value, document.ntauth_prop.newMemberGroup.value, false, false); 
  102.         document.ntauth_prop.ntMemberGroups.options[document.ntauth_prop.ntMemberGroups.options.length] = option; 
  103.         document.ntauth_prop.newMemberGroup.value = ""; 
  104.     }
  105. }
  106.  
  107. function onInit()
  108. {
  109.     member_groups = ""; 
  110.     first = true; 
  111.  
  112.     // Remove the formatting string
  113.     document.ntauth_prop.ntMemberGroups.options[0] = null; 
  114.  
  115.     // Build up a string representation for the incoming options
  116.     for (count = 0; count < document.ntauth_prop.ntMemberGroups.options.length; ++count)
  117.     {
  118.         if (!first)
  119.         {
  120.             member_groups += "+"; 
  121.         }
  122.         else first = false; 
  123.  
  124.         current_group = document.ntauth_prop.ntMemberGroups.options[count];    
  125.         member_groups += current_group.value;
  126.     }
  127.     document.ntauth_prop.input_string.value = member_groups;         
  128.     document.ntauth_prop.input_domain.value = document.ntauth_prop.ntDefaultDomain.value;         
  129.     document.ntauth_prop.input_radio.value  = document.ntauth_prop.alias_map_rad.value;         
  130.     checked_bool = document.ntauth_prop.ntAvail.checked;
  131.  
  132.     if (document.layers)
  133.     {
  134.        document.ntauth_prop.newMemberGroup.size = 40;
  135.        document.ntauth_prop.ntDefaultDomain.size = 42;
  136.     }
  137.     else
  138.     {
  139.        document.ntauth_prop.newMemberGroup.size = 48;
  140.        document.ntauth_prop.ntDefaultDomain.size = 50;
  141.     }
  142. }
  143.  
  144. // Handle resize when running Netscape
  145. function onResizeNetscape()
  146. {
  147.   if (navigator.appName == "Netscape")
  148.   {
  149.     onInit();
  150.   }
  151. }
  152.  
  153. window.onresize = onResizeNetscape;
  154.  
  155. </SCRIPT>
  156.  
  157. <FORM action="%1" method="post" name="ntauth_prop">
  158.  
  159.  
  160. <input type="checkbox" name="ntAvail" %2> NT Authentication is enabled
  161.  
  162. <BR> 
  163. <BR>
  164.  
  165.  
  166. Default NT Domain: <input name="ntDefaultDomain" value="%3">
  167.   
  168. <BR>
  169. <BR> 
  170.  
  171. Mapped NT Member Groups
  172.  
  173. <BR> 
  174.  
  175. <table border=1 CELLSPACING=0>  
  176. <tr><td><table>
  177.   <tr>
  178.     <td class="list">Add NT Group (NT Domain\Group): </td>
  179.     <td class="list"><input name="newMemberGroup" ></td>
  180.     <td rowpsan=2><table align=center> 
  181.         <tr><td>
  182.             <table CELLPADDING="0" align=center border=0><tr>            
  183.             <td class="clsButton" align=middle nowrap>
  184.                 <div class="clsButton"><a href="javascript:addGroup()" onMouseOver="StRight(102);window.status='';return true;" onMouseOut="Ht()">Add</a></div>
  185.             </td>
  186.             </tr></table>
  187.         </td></tr>
  188.         <tr><td>
  189.             <table CELLPADDING="0" align=center border=0><tr>
  190.             <td class="clsButton" align=middle nowrap>
  191.                 <div class="clsButton"><a href="javascript:deleteGroup()" onMouseOver="StRight(103);window.status='';return true;" onMouseOut="Ht()">Delete</a></div>
  192.             </td>
  193.             </tr></table>
  194.         </td></tr>
  195.     </table></td>    
  196.  
  197.   <tr>
  198.     <td colspan=2>
  199.         <table width=100%>  
  200.         <tr>            
  201.             <td class="list">
  202.                 <SELECT class="menuFormElement" multiple NAME="ntMemberGroups" size=4 style="HEIGHT: 75px; WIDTH: 500px" width="500px">
  203.                 <OPTION> This is a formatting string </OPTION>
  204.                     %4
  205.                 </SELECT>
  206.             </td>
  207.         </tr>
  208.         </table>    
  209.     </td>    
  210.   </tr>
  211. </td></tr></table>
  212. </table>
  213.  
  214. <BR>
  215.  
  216. <table>
  217. <tr><td class="list"><input type=radio name="alias_map_rad" value="mapAliasYes" %6> Assign each added NT alias to an account with the same name</td></tr>
  218. <tr><td class="list"><input type=radio name="alias_map_rad" value="mapAliasNo" %7> Create a new account for every added NT alias</td></tr>
  219. </table>
  220.  
  221. <table align=center CELLPADDING="0" CELLSPACING="5" border=0> 
  222.     <tr>            
  223.         <td class="clsButton" align=middle nowrap> 
  224.             <div class="clsButton"><a href="javascript:modifyForm();" onMouseOver="St(7);window.status='';return true;" onMouseOut="Ht()">Update</a></div>
  225.         </td>
  226.  
  227.         <td class="clsButton" align=middle nowrap> 
  228.             <div class="clsButton"><a href="javascript:document.ntauth_prop.reset();" onMouseOver="St(8);window.status='';return true;" onMouseOut="Ht()">Reset</a></div>
  229.         </td>
  230.     </tr>
  231. </table>
  232.  
  233. <input type=hidden name="input_string">
  234. <input type=hidden name="input_domain">
  235. <input type=hidden name="input_radio">
  236. <input type=hidden name="ntFinalMemberGroups">
  237. <input type=hidden name="ntAvailable">
  238.  
  239. </FORM>
  240. </BODY>
  241. </HTML>
  242.